import request from "@/utils/request";

export function getAll() {
  return request({
    url: "/admin/enrollment/all",
    method: "post"
  });
}

export function getList(data) {
  return request({
    url: "/admin/enrollment/list",
    method: "post",
    data
  });
}

export function create(data) {
  return request({
    url: "/admin/enrollment/create",
    method: "post",
    data
  });
}

export function edit(data) {
  return request({
    url: "/admin/enrollment/edit",
    method: "post",
    data
  });
}

export function del(data) {
  return request({
    url: "/admin/enrollment/del",
    method: "post",
    data
  });
}

export function getDetail(data) {
  return request({
    url: "/admin/enrollment/detail",
    method: "post",
    data
  });
}

export function importExcel(data) {
  return request({
    url: "/admin/enrollment/excel",
    method: "post",
    data
  });
}
